package org.lv.learning.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("storage-service")
public interface StorageClient {

    @PutMapping("/storage/deduct/{productId}/{count}")
    Integer deduct(@PathVariable("productId") Long productId, @PathVariable("count")Integer count);

}
